//////////////////////////////////////////////////////////////////////
//
//  Class Name: UserBean
//
//  Description: This Class defines the basic information contained in
//               the User Object.
//
//  Revision History
//  Christian Romvary  18JUN2013
//
//////////////////////////////////////////////////////////////////////

package edu.psu.collegerecommendationhelper.model;


// Imports
import java.io.Serializable;
import javax.faces.bean.*;


@ManagedBean (name="userBean")
@SessionScoped
public class UserBean implements Serializable {
   private long user_id;
   private AccountInfo accountInfo;
   private DemographicInfo demographicInfo;
   private EducationInfo educationInfo;
   private PreferenceInfo preferenceInfo;
   private CollegeResult resultList;

   public UserBean () {
      this.user_id = 0;
      this.accountInfo = null;
      this.demographicInfo = null;
      this.educationInfo = null;
      this.preferenceInfo = null;
      this.preferenceInfo = null;
      this.resultList = null;
   }

   public UserBean (AccountInfo accountInfo, DemographicInfo demographicInfo,
                    EducationInfo educationInfo, PreferenceInfo preferenceInfo,
                    CollegeResult resultList)
   {
      this.user_id = 0;
      this.accountInfo = accountInfo;
      this.demographicInfo = demographicInfo;
      this.educationInfo = educationInfo;
      this.preferenceInfo = preferenceInfo;
      this.resultList = resultList;
   }


   // Getters and Setters
   public long getUser_id() {
      return user_id;
   }
   public void setUser_id(long user_id) {
      this.user_id = user_id;
   }

   public AccountInfo getAccountInfo() {
      return accountInfo;
   }
   public void setAccountInfo(AccountInfo newAccountInfo) {
      this.accountInfo = newAccountInfo;
   }

   public DemographicInfo getDemographicInfo() {
      return demographicInfo;
   }
   public void setDemographicInfo(DemographicInfo newDemographicInfo) {
      this.demographicInfo = newDemographicInfo;
   }

   public EducationInfo getEducationInfo() {
      return educationInfo;
   }
   public void setEducationInfo(EducationInfo newEducationInfo) {
      this.educationInfo = newEducationInfo;
   }

   public PreferenceInfo getPreferenceInfo() {
      return preferenceInfo;
   }
   public void setPreferenceInfo(PreferenceInfo newPreferenceInfo) {
      this.preferenceInfo = newPreferenceInfo;
   }

   public CollegeResult getResultList() {
      return resultList;
   }
   public void setResultList(CollegeResult resultList) {
      this.resultList = resultList;
   }


}